package demo1;

interface TT{
    public void ttFunc();
}
interface GG{
    public void ggFunc() ;
}
class A{
    void func(TT tt){
        tt.ttFunc();
    }
}

public class Test2 {
    public static void main(String[] args) {
        A a1 = new A();
        a1.func( ()->{
            System.out.println(11);
        });
    }
}
